如何Pandas 如何讀寫excel

寫入 ( pip3 install xlwt)

df.to_excel('路徑\檔名.xls',encoding='utf_8_sig')

讀取 ( pip3 install xlrd)

df = pd.read_excel('路徑\檔名.xls',index_col=0) 
#index_col=0 將第一攔設定為index

results matching ""

    No results matching ""